function Population() {
    this.items = [];
    this.qty = 10;
    this.estimate = new Estimate();
}


function PopulationItem(game, moveX, moveY, value, estimateValue) {
    this.game = game;
    this.move = {x: moveX, y: moveY};
    this.estimate = estimateValue;
    this.forValue = value;
    this.info = '';
}

Population.prototype.addItem = function(game, moveX, moveY, value) {
    this.estimate.game = game;
    var estimateValue = this.estimate.getEstimateForValue(value);

    var item = new PopulationItem(game, moveX, moveY, value, estimateValue );

    this.items.push(item);
    
//    if (this.qty > 0) {
//        this.items.sort(function(a, b){return b.estimate - a.estimate});
//        this.items.slice(0, this.qty);
//    }
};